<!DOCTYPE html>
<html>
<head>
<title>素材公开表</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			#if($shiro.hasPermission("materialpublic:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("materialpublic:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("materialpublic:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">素材类型</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.type" placeholder="素材类型"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">素材细类型</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.category" placeholder="素材细类型"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">素材版本</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.version" placeholder="素材版本"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">SDK最小支持版本，在APP DEMO接口查询时需要</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.minAppVersion" placeholder="SDK最小支持版本，在APP DEMO接口查询时需要"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">素材包大小</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.packageSize" placeholder="素材包大小"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">素材文件</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.packageRelativePath" placeholder="素材文件"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">素材封面</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.coverRelativePath" placeholder="素材封面"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">某些素材添加后变化封面，在APP DEMO接口查询时需要,暂时只有推镜素材有</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.coverRelativePath2" placeholder="某些素材添加后变化封面，在APP DEMO接口查询时需要,暂时只有推镜素材有"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">素材预览视频</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.previewVideoRelativePath" placeholder="素材预览视频"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">特定素材(例如影集、mimo等)相关元数据信息URL，在APP DEMO接口查询时需要</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.infoRelativePath" placeholder="特定素材(例如影集、mimo等)相关元数据信息URL，在APP DEMO接口查询时需要"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">标题</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.displayName" placeholder="标题"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">中文标题</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.displayNameZhCn" placeholder="中文标题"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">用户自定义素材名称，用于在私有素材页中显示</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.customDisplayName" placeholder="用户自定义素材名称，用于在私有素材页中显示"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">素材简介</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.description" placeholder="素材简介"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">素材更新日志</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.updateLog" placeholder="素材更新日志"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">上传时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.initDate" placeholder="上传时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">跟新时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.modDate" placeholder="跟新时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">设计师ID</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.initUser" placeholder="设计师ID"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">所属主用户ID</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.primaryUser" placeholder="所属主用户ID"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">素材是否通用标识</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.ratioFlag" placeholder="素材是否通用标识"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">素材是否通用标识</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.supportedAspectRatio" placeholder="素材是否通用标识"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">素材是否通用标识</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.defaultAspectRatio" placeholder="素材是否通用标识"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">模板总时长</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.templateTotalDuration" placeholder="模板总时长"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">模板片段数量</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.templateShotCount" placeholder="模板片段数量"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">评级</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.quantity" placeholder="评级"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">-1删除 1正常</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.deleteState" placeholder="-1删除 1正常"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"> 0私密  1公开</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="materialPublic.publicState" placeholder=" 0私密  1公开"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${rc.contextPath}/js/generator/materialpublic.js?_${date.systemTime}"></script>
</body>
</html>